package com.itfreer.gis.locus.data.entity;

import java.io.Serializable;
import java.util.Date;

import com.itfreer.form.api.entity.EntityBase;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 在线用户
 */
@Entity(name = "gis_locus_online")
public class LocusOnlineEntity extends EntityBase implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * Id
	 */
	@Id
	@Column(name = "id", length = 50)
	private String id;

	/**
	 * 所有者
	 */
	@Column(name = "s_owerid", length = 50, nullable = true)
	private String owerid;

	/**
	 * 所有者
	 */
	@Column(name = "s_owername", length = 50, nullable = true)
	private String owername;

	/**
	 * 联系方式
	 */
	@Column(name = "phone", nullable = true)
	private String phone;

	/**
	 * 职务
	 */
	@Column(name = "position", nullable = true)
	private String position;

	/**
	 * 是否在线
	 */
	@Column(name = "b_online", nullable = true)
	private Boolean online;

	/**
	 * 纬度
	 */
	@Column(name = "d_latitude", nullable = true)
	private Double latitude;

	/**
	 * 经度
	 */
	@Column(name = "d_longitude", nullable = true)
	private Double longitude;

	/**
	 * 海拔
	 */
	@Column(name = "d_altitude", nullable = true)
	private Double altitude;

	/**
	 * 速度
	 */
	@Column(name = "d_speed", nullable = true)
	private Double speed;

	/**
	 * 时间
	 */
	@Column(name = "d_updatetime", nullable = true)
	private Date updatetime;

	@Column(name = "s_zones", nullable = true)
	private String zones;

	public String[] getZones() {
		return this.getStringArray(zones);
	}

	public void setZones(String[] zones) {
		this.zones = this.getArrayString(zones);
	}

	private String depid;

	public String getDepid() {

		return depid;
	}

	public void setDepid(String depid) {
		this.depid = depid;
	}

	/**
	 * 租户ID
	 */
	@Column(name = "s_tenantID", length = 50, nullable = true)
	private String tenantID;

	/**
	 * 租户名称
	 */
	@Column(name = "s_tenantName", length = 50, nullable = true)
	private String tenantName;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOwerid() {
		return owerid;
	}

	public void setOwerid(String owerid) {
		this.owerid = owerid;
	}

	public String getOwername() {
		return owername;
	}

	public void setOwername(String display) {
		this.owername = display;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Boolean getOnline() {
		return online;
	}

	public void setOnline(Boolean online) {
		this.online = online;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getAltitude() {
		return altitude;
	}

	public void setAltitude(Double altitude) {
		this.altitude = altitude;
	}

	public Double getSpeed() {
		return speed;
	}

	public void setSpeed(Double speed) {
		this.speed = speed;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updateTime) {
		this.updatetime = updateTime;
	}

	/**
	 * 租户ID
	 */
	public String getTenantID() {
		return tenantID;
	}

	/**
	 * 租户ID
	 */
	public void setTenantID(String tenantID) {
		this.tenantID = tenantID;
	}

	/**
	 * 租户名称
	 */
	public String getTenantName() {
		return tenantName;
	}

	/**
	 * 租户名称
	 */
	public void setTenantName(String tenantName) {
		this.tenantName = tenantName;
	}
}
